/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package SteamEngineFX.data;

import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;

/**
 *
 * @author jbendixsen
 */
public class BaseController {
    
    /**
     * 
     */
    private SteamEngineConnection conn;
    private void setSEConnection(SteamEngineConnection sec){
        conn = sec;
    }

    
    public BaseController(SteamEngineConnection sec){
        this.setSEConnection(sec);
    }
    
    //public EntityTransaction getTrans(){
    //    return conn.getTransaction();
    //s}
    
    public EntityManager getEM(){
        return conn.getConnection();
    }
    
    

}
